package com.fzrskj.cloud.sdk.mini.server;

/**
 * 认证结果
 * Created by sofical on 2020/9/27.
 */
public class MiniServerResult {
    /**
     * 认证结果：true-成功，false-错误.
     */
    private String result = "";
    /**
     * 认证描述.
     */
    private String msg = "";

    /**
     * 编码.
     */
    private String code = "";

    /**
     * 数据.
     */
    private Object data = null;

    /**
     * 是否成功.
     * @return 判断结果.
     */
    public boolean isSuccess () {
        return "success".equals(this.getResult());
    }

    /**
     * =====================================================================
     */
    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
    /**
     * =====================================================================
     */
}
